package cn.b.sky.mes.hr.model;

import org.apache.commons.lang3.StringUtils;

import cn.b.sky.common.model.ImeCommon;

/**
 * 
 * <strong>Title : PersonnelTypeAssign.java<br></strong>
 * <strong>Package : cn.b.sky.mes.hr.model<br></strong>
 * <strong>Description : </strong>人员类型<br> 
 * <strong>Create on : 2016-3-24 上午9:56:21<br></strong>
 * <p>
 * @author lidapeng<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人 | 修改日期 | 修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br> 
 */
public class PersonnelTypeAssign extends ImeCommon {
  /**
   * 职员编号
   */
  private String personnelCode;

  /**
   * 姓名
   */
  private String personnelName;

  /**
   * 职员类型编号
   */
  private String personnelTypeCode;

  /**
   * 职员类型描述
   */
  private String typeText;

  /**
   * 技能等级编号
   */
  private String skillLeveleCode;

  /**
   * 默认类型标志
   */
  private Integer defaultTypeFlag = 0;

  public String getPersonnelCode() {
    return personnelCode;
  }

  public void setPersonnelCode(String personnelCode) {
    this.personnelCode = personnelCode;
  }

  public String getPersonnelTypeCode() {
    return personnelTypeCode;
  }

  public void setPersonnelTypeCode(String personnelTypeCode) {
    this.personnelTypeCode = personnelTypeCode;
  }

  public String getSkillLeveleCode() {
    return skillLeveleCode;
  }

  public void setSkillLeveleCode(String skillLeveleCode) {
    this.skillLeveleCode = skillLeveleCode;
  }

  public Integer getDefaultTypeFlag() {
    return defaultTypeFlag;
  }

  public void setDefaultTypeFlag(Integer defaultTypeFlag) {
    this.defaultTypeFlag = defaultTypeFlag;
  }

  public String getPersonnelName() {
    return personnelName;
  }

  public void setPersonnelName(String personnelName) {
    this.personnelName = personnelName;
  }

  public String getTypeText() {
    return typeText;
  }

  public void setTypeText(String typeText) {
    this.typeText = typeText;
  }

  public boolean isNullObject() {
    if (StringUtils.isBlank(this.personnelCode)) {
      return true;
    }
    //新增的時候warehouseCode不能為空
    if (StringUtils.isBlank(this.personnelTypeCode)) {
      return true;
    }
    return false;
  }

}
